package com.yss.common.core.domain;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;
import java.util.stream.Collectors;

@Data
public class TreeNode implements Serializable {

    private String id;//id
    private String label;
    private String parentId;
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<TreeNode> children;//子节点集合
    public TreeNode() {

    }
}
